package com.demo.enumdemo;

enum ColorAbstractMethodEnum{
	RED{
		public String getColor(){
			return "红色";
		}
	},
	GREEN{
		public String getColor() {
			return "绿色";
		}
	},
	BLUE{
		public String getColor() {
			return "蓝色";
		}
	};
	
	public abstract String getColor();
}
public class AbstractMethodEnum {
	public static void main(String[] args) {
		for(ColorAbstractMethodEnum c : ColorAbstractMethodEnum.values()){
			System.out.println(c+"----"+c.getColor());
		}
	}
}
